Skip to content

feat: add prerelease VSIX validation step#164

Merged
madhur310 merged 3 commits into
mainfrom
ms/validate-prerelease
Jul 21, 2026
Merged

feat: add prerelease VSIX validation step#164
madhur310 merged 3 commits into
mainfrom
ms/validate-prerelease

Conversation

@madhur310

@madhur310 madhur310 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Addresses PR review high priority item #4:

  • Validates VSIXs are marked as prerelease when pre-release: true
  • Checks extension.vsixmanifest for Microsoft.VisualStudio.Code.PreRelease flag
  • Fails build if any VSIX is not properly marked
  • Only runs validation when pre-release input is true
  • Reuses VSIX file list from checksum step for efficiency

This ensures the --pre-release flag was properly passed to vsce package command.

    Addresses PR review high priority item #4:

    - Validates VSIXs are marked as prerelease when pre-release: true
    - Extracts package.json from VSIX and checks version has -pre suffix
    - Fails build if any VSIX is not properly marked
    - Only runs validation when pre-release input is true

    This ensures the --pre-release flag was properly passed to vsce.

@peternhale peternhale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Solid, useful addition — verifies that --pre-release was actually honored by vsce before shipping. Core logic is correct: multiline output reuse of the VSIX file list is clean, the empty-guard is correct, and paths with spaces are handled.

Minor non-blocking notes for follow-up:

  • PR description mentions extracting package.json / checking a -pre version suffix, but the implementation checks extension.vsixmanifest for the PreRelease property (which is actually the better approach). Worth updating the description.
  • The grep -q short-circuit inside a command substitution under pipefail is slightly fragile, though it won't fire in practice given manifest sizes.
  • Emoji log output is inconsistent with the plain-text style elsewhere in this workflow.

@madhur310
madhur310 merged commit 5bb4ac8 into main Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants